<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>茶商后台管理</title>
<link rel="stylesheet" href="layui-v2.4.3/layui/css/layui.css"
	media="all">

</head>
<script src="layui-v2.4.3/layui/layui.js"></script>
<style type="text/css">
#table1 {
	cellspacing: 5px;
	cellpadding: 0px;
	height: 300px;
	width: 1200px;
}

#table1 tr {
	height: 50px;
	font-size: 20px;
}

#table1 thead tr td {
	height: 80px;
	font-size: 35px;
}
</style>
<body class="layui-layout-body">
<%
	request.setCharacterEncoding("utf-8");
%>
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo">醉品茶城</div>
			<!-- 头部区域（可配合layui已有的水平导航） -->
			<ul class="layui-nav layui-layout-left">
				<li class="layui-nav-item"><a href="ShowUser.jsp">用户信息</a></li>
				<li class="layui-nav-item"><a href="ShowGoods.jsp">商品信息</a></li>
				<li class="layui-nav-item"><a href="ShowOrder.jsp">订单信息</a></li>
				<li class="layui-nav-item"><a href="javascript:;">其它系统</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="">邮件管理</a>
						</dd>
						<dd>
							<a href="">消息管理</a>
						</dd>
						<dd>
							<a href="">授权管理</a>
						</dd>
					</dl></li>
			</ul>

			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="javascript:;"> <img
						src="http://t.cn/RCzsdCq" class="layui-nav-img"> 用户名
				</a></li>
				<li class="layui-nav-item"><a href="">退出</a></li>
			</ul>
		</div>

		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
				<ul class="layui-nav layui-nav-tree" lay-filter="test">
					<li class="layui-nav-item layui-nav-itemed"><a class=""
						href="javascript:;">用户管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="userUpdate.jsp">用户修改</a>
							</dd>
							<dd>
								<a href="userDel.jsp">用户删除</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">订单管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="OrderUpdate.jsp">订单修改</a>
							</dd>
							<dd>
								<a href="OrderDel.jsp">订单删除</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">商品管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="<%=request.getContextPath()%>/TypeServlet">商品增加</a>
							</dd>
							<dd><a href="GoodsDel.jsp">商品操作</a></dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">新闻管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="NewsInsert.jsp">新闻增加</a>
							</dd>
							<dd><a href="NewsUpdateAndDelete.jsp">新闻操作</a></dd>  
						</dl></li>
					 <li class="layui-nav-item">
        <a href="javascript:;">反馈信息</a>
         <dl class="layui-nav-child">
            <dd><a href="FeedbackShowAndDelete.jsp">反馈查看和删除</a></dd>          
          </dl>
        </li>
				</ul>
			</div>
		</div>
		<div class="layui-body">
			<!-- 内容主体区域 -->
			<div style="padding: 15px;">

			<c:if test="${empty new1 }">
				<jsp:forward page="../NewsServlet?opt=sel2"></jsp:forward>
			</c:if>
				<form name="dataForm" id="dataForm" action="../NewsServlet?opt=update" method="post" enctype="multipart/form-data">
					<table id="table1">
						<thead>
							<tr>
								<td align="center" colspan="2" class="text_tabledetail2">修改新闻</td>
								<td><input type="hidden" name="id" value="${new1.nid }"/></td>
							</tr>
						</thead>
						<tbody>
							
							<tr>
								<td><span>&nbsp;题&nbsp;目&nbsp;</span> <input type="text"
									name="title" value="${new1.title }" /></td>
								<td><span>&nbsp;作&nbsp;者&nbsp;</span> <input type="text"
									name="author" value="${new1.author }" /></td>
							</tr>
							<br>
							<tr>
								<td><span>上传图片1:</span><input type="file" name="pic1"
									value=""></td>
							</tr>
							<br>
							<tr>
								<td><span>新闻内容1:</span> <textarea rows="10" cols="10"
										class="layui-textarea" name="page1">${new1.page1 }</textarea></td>
							</tr>
							<br>
							<tr>
								<td><span>上传图片2:</span><input type="file" name="pic2"
									value=""></td>
							</tr>
							<br>
							<tr>
								<td><span>新闻内容2:</span> <textarea rows="10" cols="10"
										class="layui-textarea" name="page2">${new1.page2 }</textarea></td>
							</tr>
							<br>
							<tr>
								<td><span>上传图片3:</span><input type="file" name="pic3"
									value=""></td>
							</tr>
							<br>
							<tr>
								<td><span>新闻内容3:</span> <textarea rows="10" cols="10"
										class="layui-textarea" name="page3">${new1.page3 }</textarea></td>
							</tr>
							<br>
							<tr>
								<c:if test="${empty list3 }">
								<jsp:forward page="../NewsServlet?opt=sel1"></jsp:forward>
								</c:if>
								<fmt:formatDate pattern="yyyy-MM-dd" var="a" value="${new1.date }"/>
								<td><span>日期:</span><input type="date" name="date" value="${a }" /></td>
								<td><span>类型:</span> <select name="teano">
										<option value="">--请输入--</option>
										<c:forEach var="tea" items="${list3 }">
										<c:if test="${new1.teano==tea.teano }">
										<option value="${tea.teano }" selected="selected">${tea.name }</option>
										</c:if><c:if test="${new1.teano!=tea.teano }">
										<option value="${tea.teano }">${tea.name }</option>
										</c:if>
										</c:forEach>
								</select></td>
							</tr>


						</tbody>
					</table>
					<br> <br> <input type="reset" name="" class="layui-btn"
						style="margin-left: 490px" value="重置"> <input
						type="submit" name="" class="layui-btn" value="提交">
				</form>

			</div>
		</div>
		<!-- 底部区域 -->
		<div class="layui-footer" style="text-align: center">©
			chachegn.com - 醉品商城</div>
	</div>

	<script>
		//JavaScript代码区域：左侧的下拉列表
		layui.use('element', function() {
			var element = layui.element;
		});
	</script>
</body>
</html>